import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/index',
    name: 'index',

    component: () => import(/* webpackChunkName: "home" */ '../views/page/index.vue')
  },
  {
    path: '/app',
    name: 'page',
    component: () => import(/* webpackChunkName: "home" */ '@/views/app.vue')
  },
  {
    path: '/mine',
    name: 'mine',
    component: () => import(/* webpackChunkName :"mine"*/ "@/views/mine/index2.vue")
    // component: () => import(/* webpackChunkName: "home" */ '@/views/mine.vue')
  },
  {
    path: "/cat",
    name: "cat",
    component: () => import(/* webpackChunkName:"cat"*/"@/views/cat/index.vue")
  },
  {
    path: "/order",
    name: "order",
    // alias: "/",
    component: () => import(/* webpackChunkName:"cat"*/"@/views/order/index.vue")
  },
  {
    path: "/details",
    name: "details",
    alias: "/",
    component: () => import(/* webpackChunkName:"cat"*/"@/views/details/index.vue")
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
